return view with variable laravel

33

$html = view('users.edit', compact('user'))->render();
Route::get('/', function () {
    return view('greeting', ['name' => 'James']);
});
return View::make('blog')->with('posts', $posts);
{{ dd(get_defined_vars()['__data']) }}

Comments

Submit
0 Comments